<script type="text/javascript" src="<?php echo base_url();?>public/ckeditor/ckeditor.js"></script>
<div class="editcate_top">
    <h2>Thêm mới tin tức</h2>
    <a href="javascript:void(0)" onclick ="$('#light_adct').hide();$('#fade_adct').hide()"><img src="<?php echo img_link('close.png', 'admin'); ?>" class="png" /></a>
</div>

<?php if($this->message->has('error')):?>
	<div><h2><?php echo $this->message->display();?></h2></div>
<?php endif;?>

<form enctype="multipart/form-data" method="post" action="" id="articles_form">
<div class="editcate_ct">
	<div class="btarticle">
    	<input type="button" value="Cancel" class="btn" onclick="$('#light_adct').hide();$('#fade_adct').hide();" />
        <input type="submit" value="Save & Continute" class="btn" />
    </div>
	<div class="boxadd">
    	<ul class="linect">     	   	
            <li>
                <span class="left"><b>Họ tên<font color="red">(*)</font> :</b></span>
                <span class="right"><input type="text" name="fullname" value="<?php echo (isset($input_form['fullname']) ? $input_form['fullname'] : '');?>" style="width:40%; margin:0;" /></span>
            </li>
            <li>
                <span class="left"><b>Thông tin<font color="red"></font> :</b></span>
                <span class="right"><input type="text" name="info" value="<?php echo (isset($input_form['info']) ? $input_form['info'] : '');?>" style="width:40%; margin:0;" /></span>
            </li>
            <li>
                <span class="left">Ảnh minh họa</span>
                <span class="right">                	                	
                	<input type="file" name="image" value="" /><br />                	
                </span>
            </li>
            <li>
            	<span class="left">Nội dung</span>
            	<span class="right">
                	<textarea id="content" name="content" style="width:40%; height:150px;"><?php echo (isset($input_form['content']) ? $input_form['content'] : '');?></textarea>
                </span>            	
            </li>          
       		<li>
       			<span class="left"><b>Kích hoạt:</b></span>
       			 <span class="right">
                    <input type="checkbox" <?php echo (isset($input_form['active']) && $input_form['active'] == 1 ? 'checked="checked"' : '');?> name="active" id="active" value="1"/>
                </span>
       		</li>
       		
        </ul>
    </div>
    <div class="btarticle">
    	<input type="button" value="Cancel" class="btn" onclick="$('#light_adct').hide();$('#fade_adct').hide();" />
        <input type="submit" value="Save & Continute" class="btn" />

    </div>
</div>
</form>